package com.zy.openchat.core.model.location;

import android.os.Parcel;
import android.os.Parcelable;

public class MsgLocationInfo implements Parcelable {
    //latitude
    public double latitude;
    //longitude
    public double longitude;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.latitude);
        dest.writeDouble(this.longitude);
    }

    public MsgLocationInfo() {
    }

    protected MsgLocationInfo(Parcel in) {
        this.latitude = in.readDouble();
        this.longitude = in.readDouble();
    }

    public String title;
    public String formatAddress;

    public static final Creator<MsgLocationInfo> CREATOR = new Creator<MsgLocationInfo>() {
        @Override
        public MsgLocationInfo createFromParcel(Parcel source) {
            return new MsgLocationInfo(source);
        }

        @Override
        public MsgLocationInfo[] newArray(int size) {
            return new MsgLocationInfo[size];
        }
    };
}
